package com.ckk.eurekaclient.controller;

import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author JBB
 * @version 1.0
 * @description MyController.java
 * @date 2021/3/9 12:19
 */
@RestController
@RequestMapping(value = "/user",produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public class MyController {
    @RequestMapping(value = "/login" )
    public Map<String,Object> login (String username){
        Map<String,Object> map = new HashMap<>();
        map.put("code",200);
        map.put("msg","登陆成功！");
        map.put("username",username);
        return  map;
    }
}
